//
//  GoodsArray.m
//  Go!
//
//  Created by rimi on 16/7/18.
//  Copyright © 2016年 凌风. All rights reserved.
//

#import "GoodsArray.h"

@interface GoodsArray()
@property (nonatomic, strong) NSMutableArray *buyArray;
@end

@implementation GoodsArray
static GoodsArray *managerArray = nil;

+(GoodsArray *)shareArray{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken,^{
        managerArray = [[GoodsArray alloc]init];
        managerArray.buyArray = [NSMutableArray array];
    });
    return managerArray;
}

-(void)buysomethingWithAboutGoodsImage:(NSString *)imageurl
                             GoodsName:(NSString *)goodsName
                               Price:(NSNumber *)price{
    NSDictionary *dict = @{@"imageurl":imageurl,@"goodsName":goodsName,@"price":price};
    [managerArray.buyArray addObject:dict];
}

@end
